<?php

namespace App\Api\Requests;

class WithdrawRequest extends FormRequest
{
    public function rules()
    {
        return [
            'amount' => ['required'],
            'real_name' => ['required'],
            'bank_name' => ['required'],
            'bank_no' => ['required'],

        ];
    }
    public function attributes()
    {
        return [
            'amount' => '提现金额',
            'real_name' => '收款姓名',
            'bank_name' => '银行',
            'bank_no' => '银行卡号',
        ];
    }

    public function messages()
    {
        return [
            'amount.required' => '提现金额不能为空',
            'real_name.required' => '收款姓名不能为空',
            'bank_name.required' => '银行不能为空',
            'bank_no.required' => '银行卡号不能为空',
        ];
    }
}